﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wctlGastoRegistroListar.ascx.vb" 
Inherits="Controls_wctlGastoRegistroListar"%>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v10.1" Namespace="DevExpress.Web.ASPxCallbackPanel"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1" Namespace="DevExpress.Web.ASPxPanel"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1" Namespace="DevExpress.Web.ASPxPopupControl"
    TagPrefix="dx" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>


<script type="text/javascript">

    function OnRowClick1(e) {
        _aspxClearSelection();
        dgvActividadesPendientes._selectAllRowsOnPage(false);
        dgvActividadesPendientes.SelectRow(e.visibleIndex, true);
    }
    function OnRowClick2(e) {
        _aspxClearSelection();
        dgvListadoGastos._selectAllRowsOnPage(false);
        dgvListadoGastos.SelectRow(e.visibleIndex, true);
    }
</script>
<link href="../styles/base.css"rel="stylesheet" type="text/css" /> 
<%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
  --%>
         <style type="text/css">
             .style3
             {
                 width: 90px;
                 height: 31px;
             }
             .style4
             {
                 width: 100px;
                 height: 1px;
             }
             .style5
             {
                 width: 120px;
                 height: 31px;
             }
             .style6
             {
                 height: 31px;
             }
             .style7
             {
                 height: 1px;
             }
         </style>
         <table width="500" style=" font-family:Georgia ">
            <tr><td>
            <table>
                <tr>
                <td class="style4">
                    </td>
                <td class="style4">

                    </td>
                    <td class="style7">
                        </td>
                    <td class="style7">
                        </td>
                    <td class="style7">
                        </td>
                </tr>
                <tr>
        <td class="style6">
                    <asp:Label ID="Label18" runat="server" Font-Bold="False" Text="Fecha Inicio:"></asp:Label>
                    </td>
                <td class="style5"  >

                    <asp:TextBox ID="txtFechaInicial" runat="server" Width=66px></asp:TextBox>
                   <asp:ImageButton ID="imgbFechaInicial" runat="server" 
                        ImageUrl="~/Images/Calendar_scheduleHS.png" style="width: 16px" />

        <asp:Calendar ID="cldFechaInicial" 
                runat="server" 
                DayNameFormat="FirstLetter" 
                Font-Names="Arial" Font-Size="11px" 
                NextMonthText="»" PrevMonthText="«" 
                SelectionMode="DayWeekMonth"
                SelectMonthText="»" SelectWeekText="›" 
                CssClass="myCalendar" BorderStyle="None"
                CellPadding="1" OnSelectionChanged="cldFechaInicial_SelectionChanged"
                Visible="False">

                <OtherMonthDayStyle ForeColor="Gray" />
                <DayStyle CssClass="myCalendarDay" />
                <SelectedDayStyle Font-Bold="True" Font-Size="12px" />
                <SelectorStyle CssClass="myCalendarSelector" />
                <NextPrevStyle CssClass="myCalendarNextPrev" />
                <TitleStyle CssClass="myCalendarTitle" />
            </asp:Calendar>

                    </td>
                    <td class="style6">
                        <asp:Label ID="Label19" runat="server" Font-Bold="False" Text="Fecha Fin:"></asp:Label>
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtFechaFin" runat="server" Width=67px></asp:TextBox>
                    <asp:ImageButton ID="imgbFechaFinal" runat="server" 
                        ImageUrl="~/Images/Calendar_scheduleHS.png" style="width: 16px" />
                             <asp:Calendar ID="cldFechaFinal" 
                runat="server" 
                DayNameFormat="FirstLetter" 
                Font-Names="Arial" Font-Size="11px" 
                NextMonthText="»" PrevMonthText="«" 
                SelectionMode="DayWeekMonth"
                SelectMonthText="»" SelectWeekText="›" 
                CssClass="myCalendar" BorderStyle="None"
                CellPadding="1" OnSelectionChanged="cldFechaFinal_SelectionChanged"
                Visible="False">

                <OtherMonthDayStyle ForeColor="Gray" />
                <DayStyle CssClass="myCalendarDay" />
                <SelectedDayStyle Font-Bold="True" Font-Size="12px" />
                <SelectorStyle CssClass="myCalendarSelector" />
                <NextPrevStyle CssClass="myCalendarNextPrev" />
                <TitleStyle CssClass="myCalendarTitle" />
            </asp:Calendar>
            </td>
                    <td class="style6">
                        <asp:Button ID="btnConsultar" runat="server" CssClass="button2" 
                            OnClick="btnConsultar_Click" Text="Consultar" Width="79px" />
                    </td>
                </tr>
            </table>
            </td>
                </tr>
         <tr><td>
         
          <dx:ASPxGridView ID="dgvListadoGastos" runat="server" 
                        AutoGenerateColumns="False" 
                        Caption="Listado de Gastos Registrados" Width="600px"  
                        Font-Bold="False" 
                        ClientInstanceName="dgvListadoGastos" KeyFieldName="gasGastoID" 
                 CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                        <Columns>
                            <dx:GridViewCommandColumn VisibleIndex="0" Width="10px">
                            </dx:GridViewCommandColumn>
                            <dx:GridViewDataTextColumn Caption="ID" FieldName="gasGastoID" 
                                Visible="False" VisibleIndex="1" ReadOnly="True">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Proyecto" FieldName="prjNombreCorto" 
                                ReadOnly="True" VisibleIndex="1"
                                Width="30%">
                                <HeaderStyle Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn Caption="Fecha de Gasto" FieldName="gasFechRegGasto" VisibleIndex="3"
                                Width="10%">
                            </dx:GridViewDataDateColumn>
                            
                            <dx:GridViewDataTextColumn Caption="Motivo" FieldName="gasDescMotivo" VisibleIndex="4"
                                Width="10%">
                            </dx:GridViewDataTextColumn>
                            
                            <dx:GridViewDataTextColumn Caption="Moneda" FieldName="MONEDA"
                                VisibleIndex="5" Width="7%">
                                <HeaderStyle Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Importe" FieldName="gasImporteGasto" 
                                VisibleIndex="6" Width="7%">
                                <HeaderStyle Wrap="True" />
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="gasPersonalProyectoID" FieldName="gasPersonalProyectoID" 
                                Visible="False" VisibleIndex="7" >
                            </dx:GridViewDataTextColumn>

                        </Columns>
                        <Styles cssfilepath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            csspostfix="PlasticBlue">
                            <Header Font-Bold="True" imagespacing="10px" sortingimagespacing="10px"></Header>
                            <AlternatingRow  Enabled="True"></AlternatingRow>
                        </Styles> 
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick2(e);}" />
                    </dx:ASPxGridView>
                                        
         </td>
         </tr><tr><td>
         <table><tr> <td>
                         <asp:Button ID="btnNuevo" runat="server" CssClass="button2" 
                Text="Nuevo" Width="82px" />
         </td><td>
         <asp:Button ID="btnEditar" runat="server"  Text="Editar" CssClass="button2" 
                     Width="83px" /></td>
                    <td><asp:Button ID="btnAnular" runat="server" CssClass="button2" 
                        Text="Anular" Width="86px" /></td>
                    <td><asp:Button ID="btnRetornar" runat="server" CssClass="button2" 
                                    Text="Retornar" Width="91px"  /></td>
                     <td>
                         &nbsp;</td>
                     <asp:HiddenField ID="hdnhorcodReghora" runat="server" />
         </tr>
         </table>
         </td></tr>
            <tr style="margin-left: 120px"><td><span class="footerText">
                    <asp:Label ID="lblMensaje1" runat="server" Font-Size="Small" ForeColor="#C00000"></asp:Label>
                </span></td>
                </tr>
        </table>
<%--    </ContentTemplate>
</asp:UpdatePanel>
--%>